package NM;

import java.util.Stack;

public class text1 {
    public static void main(String[] args){
        Stack<Integer> stack=new Stack<>();
        stack.push(10);
        stack.push(11);
        stack.push(12);
        System.out.println(stack.peek());
        System.out.println(stack.pop());
    }
}
